import request from '@/utils/request'

// 查询作品上传列表
export function listArtwork(query) {
  return request({
    url: '/bussiness/artwork/list',
    method: 'get',
    params: query
  })
}

// 查询作品上传详细
export function getArtwork(id) {
  return request({
    url: '/bussiness/artwork/' + id,
    method: 'get'
  })
}

// 新增作品上传
export function addArtwork(data) {
  return request({
    url: '/bussiness/artwork',
    method: 'post',
    data: data
  })
}

// 修改作品上传
export function updateArtwork(data) {
  return request({
    url: '/bussiness/artwork',
    method: 'put',
    data: data
  })
}

// 删除作品上传
export function delArtwork(id) {
  return request({
    url: '/bussiness/artwork/' + id,
    method: 'delete'
  })
}

//上移 下移
export function moveUpOrDown(data) {
  return request({
    url: '/bussiness/artwork/moveUpOrDown',
    method: 'put',
    data
  })
}
